package com.jsy.mqhelper.charlotterpc.protocol;

import lombok.Getter;

/**
 * @author: SongyangJi
 * @description:
 * @since: 2021/10/2
 */
public enum ResponseCode {

    PARSE_ERROR(32700),

    INVALID_REQUEST(32600),

    METHOD_NOT_FOUND(32601),

    INVALID_PARAMS(32602),

    INTERNAL_ERROR(32603),

    OTHER(32000);

    /**
     * -32000 to -32099	Server error服务端错,预留用于自定义的服务器错误。
     */

    @Getter
    int code;

    ResponseCode(int code) {
        this.code = code;
    }
}
